package org.dromara.system.domain.bo;

import org.dromara.system.domain.YzlSafetyCamera;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;

/**
 * 摄像头视频业务对象 yzl_safety_camera
 *
 * @author fxnn
 * @date 2025-09-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = YzlSafetyCamera.class, reverseConvertGenerate = false)
public class YzlSafetyCameraBo extends BaseEntity {

    /**
     * 主键
     */
    private Long id;

    /**
     * 部门id
     */
    private Long deptId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 萤石云设备号
     */
    @NotBlank(message = "萤石云设备号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String deviceSerial;

    /**
     * 视频封页1
     */
    private String ezopen;

    /**
     * 视频封页2
     */
    private String ezopenTwo;

    /**
     * 备注
     */
    private String remark;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String cameraName;

    /**
     * 萤石云密钥key
     */
    @NotBlank(message = "萤石云密钥key不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appKey;

    /**
     * 萤石云密钥secret
     */
    @NotBlank(message = "萤石云密钥secret不能为空", groups = { AddGroup.class, EditGroup.class })
    private String appSecret;

    private Integer camerasNumber;


}
